package accounting_system;

public class Accounting_System {

    public static void main(String[] args) {
                
        MainFrame mainFrame = new MainFrame();
        
        Person admin = new Person();
        admin.setFirstName("Admin");
        admin.setSurName("Comps");
        admin.setBirthDate("07061977");
        admin.showPersonCard();
        
        Person director = new Person();
        director.setSurName("Главнов");
        director.setFirstName("Руководитель");
        director.setSecondName("Директорович");
        director.setBirthDate("15031969");
        director.setWorkStartDate("28112002");
        director.setFunction("Руководитель компании");
        director.setLevel(7);
        director.showPersonCard();
        
        Person looser = new Person();
        looser.setFirstName("Looser");
        looser.setFunction("looser");
        
        PersonsList personsList = new PersonsList();
        personsList.addPerson(admin);
        personsList.addPerson(director);
        personsList.addPerson(looser);
        
        System.out.println("" + personsList);
        mainFrame.addPersonsList(personsList);
        
    }
    
}
